<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');


class Msg_Re extends CI_Controller {

	function __construct()
	{
		parent::__construct();
	}

	public function index()
	{
		$this->load->helper('date');
		$this->load->helper('url');
		$this->load->model('re_messagedata_m');

		$data=array(
			're_message_id'=>$_GET['id'],
			're_username'=>$_POST['user'],
			're_message'=>$_POST['msg'],
			're_time'=>date("Y-m-d H:i:s"),
			);					
			$this->re_messagedata_m->re_msg_insert($data);
			redirect('?count='.$_GET['count'],'refresh');	
	}

}
?>